<?php
require_once("database/db_connect.php"); 
require_once("database/get_xml.php");
require_once("database/db_mars_get_set.php");

$currentConnection = CreateNewDBConnection("mars");
$xml = getXml("http://cab.inta-csic.es/rems/rems_weather.xml");
insertWeatherXmlToDatabase($xml, $currentConnection);
//ReadWeatherReport($currentConnection, 350);
$lastReport = GetLastWeatherReport($currentConnection);
//print("<h1>".$lastReport['sol']."</h1>");
$currentConnection->close();
?>